package com.hhw.service;

import java.util.List;

import com.hhw.dao.OrderPageDao;
import com.hhw.entity.Order;


public class OrderPageService {
			
	
	//实例化数据访问层
	OrderPageDao pd=new OrderPageDao();
	
	
	//验证商品总数方法
	public int findOrderPage(){
		int count=pd.findOrderPage();
		return count;
	}
	
	//验证分页查询方法
	public List<Order> findOrderByPage(int orderpageNum, int orderpageSize){
		List<Order> list=pd.findOrderByPage(orderpageNum, orderpageSize);
		return list;
	}
	
	
	
}
